package com.youlu.campus.web.data.english;

import com.youlu.campus.service.english.CompetitionCarouselService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CompetitionCarouselController {

    @Autowired
    private CompetitionCarouselService competitionCarouselService;

    @GetMapping("/public/competition/carousel")
    public QResult home(@RequestParam Integer type){
        return QResult.success(competitionCarouselService.homeList(type));
    }
}
